GtkWindow: Get the correct shadow width even before window is realized
authorJonas Ådahl <jadahl@gmail.com>
Wed, 29 Apr 2015 07:08:44 +0000 (15:08 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 6 May 2015 11:55:20 +0000 (19:55 +0800)
commitb1e5ad469c753ea3eed967056ca814ecb0117c7b
tree6cb52f3437d0e9b093ec694935109ef5112d8032
parent17260240341d224d5c3dd56ea19dc31355614957
GtkWindow: Get the correct shadow width even before window is realized

The window state 'client_decorated' will only be set the window is being
realized. If anyone tries to get the shadow size before that it'd get
the with as if there always was no shadow.

This avoids negative sized opaque regions caused by the allocation being
smaller than shadow.

https://bugzilla.gnome.org/show_bug.cgi?id=748615
gtk/gtkwindow.c